package com.offcn.sellergoods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;


import java.io.Serializable;
import java.lang.Long;
import java.lang.String;

/**
 * 商品分类表
 * @Author:ujiuye
 * @Description:ItemCat构建
 * @Date 2021/2/1 14:19
 *****/
@Data
@ApiModel(description = "ItemCat", value = "ItemCat")
@TableName(value = "tb_item_cat")
public class ItemCat implements Serializable {

    /**
     * 类目ID
     */
    @ApiModelProperty(value = "类目ID", required = false)
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    /**
     * 父类目ID=0时，代表的是一级的类目
     */
    @ApiModelProperty(value = "父类目ID=0时，代表的是一级的类目", required = false)
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 类目名称
     */
    @ApiModelProperty(value = "类目名称", required = false)
    @TableField(value = "name")
    private String name;

    /**
     * 类型id
     */
    @ApiModelProperty(value = "类型id", required = false)
    @TableField(value = "type_id")
    private Long typeId;
}
